{% load i18n %} 
  <script>
  $(document).ready(function(){
	    $.getJSON("/forum/api/query/",
	        function(data){
	          $.each(data.posts, function(i,item){
	            post = "<li><a href=\"" + item.url + "\" target=\"_blank\">" + item.title + "</a></li>";
	            $("#recent_forum_posts").append(post);
	          });
	        });
	  });
  </script>

  <li class="sidebar">
    <h2><strong>{% trans 'Recent forum posts' %}</strong></h2>
      <ul id="recent_forum_posts">
      </ul>
  </li>
